package com.hl.sfzy.service;

import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.CourseReply;
import com.hl.sfzy.entity.CourseTalk;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseReplyService {
    //根据id删除
    int removeByPrimaryKey(Long id);
    //新增
    int add(CourseReply courseReply);

    //根据id查询
    CourseReply findByPrimaryKey(Long id);

    //修改
    int editByPrimaryKey(CourseReply courseReply);
    //批量删除
    int removeBatch(List<Long> ids);

    //查询所有
    List<CourseReply> find(int pageNum, int pageSize);
    //分页查询
    PageInfo<CourseReply> findByPage(@Param("pageNum") int pageNum,
                                    @Param("pageSize") int pageSize,
                                    @Param("courseReply") CourseReply courseReply);
}
